package ru.xpparty.painting;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Point;

import javax.swing.JFrame;

public class PaintFrame extends JFrame {

	private static final long serialVersionUID = 1L;

	public static final Point DEFAULT_LOCATION_POINT = new Point(50, 50);

	public static final Dimension DEFAULT_SIZE = new Dimension(400, 400);

	private Linen linen;

	public PaintFrame() {
		linen = new Linen();
		init();
	}

	private void init() {
		setLocation(DEFAULT_LOCATION_POINT);
		setSize(DEFAULT_SIZE);
		setResizable(false);
		setLayout(new BorderLayout());
		add(linen, BorderLayout.CENTER);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

	/**
	 * @return the linen
	 */
	public Linen getLinen() {
		return linen;
	}

}
